home *** CD-ROM | disk | FTP | other *** search
- // %filename% -- main program
- // Created %date% %time% by AppMaker
-
- #ifndef __UMacApp__
- #include <UMacApp.h>
- #endif
- #ifndef __UGridView__
- #include <UGridView.h>
- #endif
- #ifndef __UTEView__
- #include <UTEView.h>
- #endif
- #ifndef __UDialog__
- #include <UDialog.h>
- #endif
- #ifndef __UPrinting__
- #include <UPrinting.h>
- #endif
- #ifndef __UAMLibraryM__
- #include "UAMLibraryM.h"
- #endif
- #ifndef __U%appname%__
- #include <U%appname%.h>
- #endif
-
- T%Appname%App% %*g%Appname%App;
-
- #pragma segment Main
- /*----------*/
- void main ()
- {
- InitToolBox ();
- if (ValidateConfiguration (&gConfiguration)) {
- InitUMacApp (10); // number of calls to MoreMasters
- InitUGridView ();
- InitUTEView ();
- InitUDialog ();
- InitUPrinting ();
-
- g%Appname%App = new T%Appname%App;
- FailNIL (g%Appname%App);
- g%Appname%App->I%Appname%App ();
- g%Appname%App->Run ();
- } else {
- StdAlert (phUnsupportedConfiguration);
- }
- } /* main */
-
- /* %appname% */
-